#需求：对所有级别为1级的员工，级别上升一级，薪水增加1000元
info_dict = {
     "Wang":{"部门": "科技部","工资": 3000,"级别":1},
     "Zhou":{"部门": "市场部","工资": 5000,"级别":2},
     "Lin":{"部门": "市场部","工资": 7000,"级别":3},
     "Zhang":{"部门": "科技部","工资": 4000,"级别":1},
     "Liu":{"部门": "市场部","工资": 6000,"级别":2}
 }
print(f"升职加薪前的信息：{info_dict}")
#遍历字典
for key,value in info_dict.items():#items() 方法使你能够同时访问字典的键和值
    if info_dict[key]["级别"] == 1:
        #修改信息
        value["级别"] += 1
        value["工资"] += 1000
print(f"员工升职加薪后的结果为：{info_dict}")

